package org.ljy.lotterysystem.controller.param;


import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {

    private Integer currentPage = 1;

    private Integer pageSize = 10;

    /**
     *  求偏移量
     * @return
     */
    public Integer getCurrentPage() {
        return (currentPage - 1) * pageSize;
    }
}
